<template>
	<view class="content">
		<view class="logo-sub">
			<form @submit="formSubmit" @reset="formReset">
				
				<view class="uni-form-item uni-column">
					<view class="title">工作室名称</view>
					<input class="uni-input" name="studioName" placeholder="这是一个输入框" />
				</view>
				<view class="uni-btn-v">
					<button form-type="submit">Submit</button>
					<button type="default" form-type="reset">Reset</button>
				</view>
			</form>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				edit1: ''
			};
		},
		methods: {
			formSubmit(e) {
				console.log('form发生了submit事件，携带数据为：' + JSON.stringify(e.detail.value))
				var formdata = e.detail.value
				uni.showModal({
					content: '表单数据内容：' + JSON.stringify(formdata),
					showCancel: false
				});
			},
			formReset(e) {
				console.log('清空数据')
			}
		}
	}
</script>

<style lang="scss">
	.uni-form-item .title {
	        padding: 20rpx 0;
	    }
.logo-sub{
	width: 90%;
}
</style>
